package com.zabra.zl.ui.recharge.model;

import com.zabra.zl.data.RechargeOffLineBean;
import com.zabra.zl.data.RechargeOnLineBean;
import com.zabra.zl.data.SimpleBean;
import com.zabra.zl.data.WechatBean;
import com.zabra.zl.net.RetrofitClient;
import com.zabra.zl.ui.recharge.contract.RechargeContract;

import okhttp3.RequestBody;
import retrofit2.Call;

public class RechargeModel implements RechargeContract.Model {
    @Override
    public Call<RechargeOnLineBean> getOnLineData(RequestBody body) {
        return RetrofitClient.getInstance().getApi().getOnLineData(body);
    }

    @Override
    public Call<RechargeOffLineBean> getOffLineData(RequestBody body) {
        return RetrofitClient.getInstance().getApi().getOffLineData(body);
    }

    @Override
    public Call<SimpleBean> getOffLineSubmitData(RequestBody body) {
        return RetrofitClient.getInstance().getApi().getOffLineSubmitData(body);
    }

    @Override
    public Call<WechatBean> getWeChatData(RequestBody body) {
        return RetrofitClient.getInstance().getApi().getWeChatData(body);
    }

    @Override
    public Call<WechatBean> getAlipayData(RequestBody body) {
        return RetrofitClient.getInstance().getApi().getAlipayData(body);
    }

    @Override
    public Call<SimpleBean> getSubmitWeChatData(RequestBody body) {
        return RetrofitClient.getInstance().getApi().getWeChatSubmitData(body);
    }

    @Override
    public Call<SimpleBean> getSubmitAlipayData(RequestBody body) {
        return RetrofitClient.getInstance().getApi().getAlipaySubmitData(body);
    }
}
